import ajax from './ajax'

const BASE_URL = '/api'
// ---------------------------------------------------------------------------------------------------------------------
// 实时页面接口函数
// 总收入查询
export const getTotalIncome = () => ajax(BASE_URL + '/twoController/PostIncomeInfos', {}, 'POST')
// 服务区信息查询
export const getallserviceArea = () => ajax(BASE_URL + '/fictitious/GetallserviceArea')
// 收费站收入查询
export const getTollIncome = () => ajax(BASE_URL + '/twoController/PostTollboothincome', {}, 'POST')

// ---------------------------------------------------------------------------------------------------------------------
// 统计页面接口函数
// 获取年收入数据
export const getTotalYearIncome = () => ajax(BASE_URL + '/fictitious/GetIncomeInfo')
// 查看分中心数据
export const getBranchInfo = () => ajax(BASE_URL + 'fictitious/PostBranch', { branchcode: this.branchcode }, 'POST')
// 获取收费站下拉列表函数
export const getTollSelect = () => ajax(BASE_URL + '/fictitious/GetTollboothSelect')
// 获取收费站信息
export const getTollInfo = () => ajax(BASE_URL + 'fictitious/GetTollbooth')
// 获取最近7天内车流量和收入信息
export const getSevenInfo = () => ajax(BASE_URL + '/fictitious/GetCarStatistics')

// ---------------------------------------------------------------------------------------------------------------------
// 管理模块接口函数
// 获取基础建设列表
export const getBasicBuild = () => ajax(BASE_URL + '/fictitious/GetBasicsWorkList')
// 获取实时监控中所有收费站和分中心下拉列表
export const getAllList = () => ajax(BASE_URL + '/fictitious/GetBranchAndServiceAreaAndTollbooth')
// 获取视频地址
export const getVideoUrl = () => ajax(BASE_URL + '/fictitious/Postvideourl', {
  camId: 'CAM1001',
  page: 1,
  pageSize: 2,
  quality: 'h'
}, 'POST')
// 获取系统监控状态
export const getSystemWatch = () => ajax(BASE_URL + '/fictitious/GetSystmemonitor')
// 获取通讯录数据
export const getUserList = () => ajax(BASE_URL + '/fictitious/GetUserList')
// 获取所有事件类型列表
export const getEventType = () => ajax(BASE_URL + '/twoController/GetselectEvenitTypeList')
